package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 
* @ClassName: InsRoomsOrder 
* @Description: 机构-房间-订单表定义表
* @author eason
* @date 2017-01-17 15:58:38
*
 */
@Entity
@Table(name = "tb_xa_insroomsorder")
@ApiModel(value="机构-房间-订单表定义表")
public class InsRoomsOrder extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="房型id,房型id")
	private Long insRoomId;
	@ApiModelProperty(value="时间,时间(yyyy-mm-dd)")
	private String date;
	@ApiModelProperty(value="该种房型的房子编号,该种房型的房子编号(每种房型的编号都是从1开始)")
	private Long roomNo;
	@ApiModelProperty(value="入住状态,入住状态(0:空闲；1：入住 2:已经退房)")
	private Integer roomOrderState;

	public InsRoomsOrder() {
	}

	public InsRoomsOrder(Long insRoomId, String date, Long roomNo, Integer roomOrderState) {
		this.insRoomId = insRoomId;
		this.date = date;
		this.roomNo = roomNo;
		this.roomOrderState = roomOrderState;
	}

	public void setInsRoomId(Long insRoomId){
		this.insRoomId=insRoomId;
	}
	
	@Column(nullable=true,length=50)
	public Long getInsRoomId(){
		return insRoomId;
	}
	public void setDate(String date){
		this.date=date;
	}
	
	@Column(nullable=true,length=50)
	public String getDate(){
		return date;
	}
	public void setRoomNo(Long roomNo){
		this.roomNo=roomNo;
	}
	
	@Column(nullable=true,length=50)
	public Long getRoomNo(){
		return roomNo;
	}
	public void setRoomOrderState(Integer roomOrderState){
		this.roomOrderState=roomOrderState;
	}
	
	@Column(nullable=true,length=50)
	public Integer getRoomOrderState(){
		return roomOrderState;
	}

	@Override
	public void setInsertBefore() {
		super.setInsertBefore();
		roomOrderState = 0;
	}
}
